Fix benign typo in garmin.c.
authorrobertl <robertl>
Wed, 3 Sep 2008 06:05:14 +0000 (06:05 +0000)
committerrobertl <robertl>
Wed, 3 Sep 2008 06:05:14 +0000 (06:05 +0000)
garmin.c

index bf3a2a944f2e721fdd0879b295fdef1c74f20667..b387790a87e2d5068108ff38f83ef349dc113e99 100644 (file)
--- a/garmin.c
+++ b/garmin.c
@@ -980,7 +980,7 @@ route_waypt_pr(const waypoint *wpt)
 
        if (wpt->description) {
                strncpy(rte->cmnt, wpt->description, sizeof(rte->cmnt));
-               rte->cmnt[sizeof(rte->ident)-1] = 0;
+               rte->cmnt[sizeof(rte->cmnt)-1] = 0;
        } else  {
                rte->cmnt[0] = 0;
        }